home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Files / Directories / Drive.h < prev    next >
Text File  |  2000-06-23  |  461b  |  31 lines

  1. // Drive.h
  2.  
  3. #ifndef Drive_h
  4. #define Drive_h
  5.  
  6. #ifndef Volume_h
  7. #include "Volume.h"
  8. #endif
  9.  
  10. class Drive
  11.   {
  12.     private:
  13.         int16 refNum;
  14.     
  15.         static void ThrowError( OSErr );
  16.  
  17.     public:
  18.         explicit Drive( int16 value )
  19.           : refNum( value )
  20.           {}
  21.     
  22.         int16 RefNum() const                            { return refNum; }
  23.         
  24.         bool operator==( Drive f ) const            { return refNum == f.refNum; }
  25.         bool operator!=( Drive f ) const            { return refNum != f.refNum; }
  26.  
  27.         Volume Mount();
  28.   };
  29.  
  30. #endif
  31.